package h_eekwan.basic;

public class J03_Question20_ {

	public static void main(String[] args) {
	// 20.
		//가
		int n;
		int k;
		int r;
		
		n=1;
		k=2;
		r = k;
		
		if (r> n+ k)System.out.println(r=2*n); else System.out.println( k = 2 * r);
		
		
		//22.
		
		int number = 35;
		
		if (number % 2 == 0)
		System.out.println( number + "is even"  ); else System.out.println(number+"is odd.");
		
		// 23.
		int x = 3, y = 2, z = x+y;
		
		if(x>2){if(y>2){z=x+y; System.out.println("z is" + z);}} 
		else System.out.println("x is"+ x);
			
		
	
	}

	
}
